﻿using System.Web.Http;
using System.Web.Mvc;

namespace CanDoo.Oil.WebApi.Areas.Api
{
    public class ApiAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "Api";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            //HttpConfiguration config = GlobalConfiguration.Configuration;
            //config.Routes.MapHttpRoute(
            //    "ServiceActionApi",
            //    "api/{controller}/{action}/{id}",
            //    new { area = "Service", id = RouteParameter.Optional }
            //    );
            //config.Routes.MapHttpRoute(
            //    "ServiceApi",
            //    "api/{controller}/{id}",
            //    new { area = "Service", id = RouteParameter.Optional }
            //    );

            //context.MapLowerCaseUrlRoute(
            //    "Service_default",
            //    "api/service/{controller}/{action}/{id}",
            //    new { action = "Index", id = UrlParameter.Optional }
            //    );

            //context.MapRoute(
            //    "Api_default",
            //    "Api/{controller}/{action}/{id}",
            //    new { action = "Index", id = UrlParameter.Optional }
            //);
        }
    }
}